Computer Science Lesson Plan
Class: 8 - Lesson: 14 Functions

Purpose: To learn to use functions to organise and group repeated blocks of code, and to use parameters to generalise a function for different contexts.

No. of Classes

Two or three classes (teacher's decision).

Material Required
  1. Desktop computer or laptop.
  2. Circuit Playground Express board.
  3. USB cable.
  4. Internet connection.
Curriculum Content
  • 1.5) Function
  • 3) Controller
  • Prior Knowledge

    Students should know:

  • Variables and conditional statements.
  • Exercise

    Exercise 1



    1. Work through the lesson to the end.

    Solutions



  • Link to view the model solution file.

  • Teacher Instructions
    1. Teachers should ensure that students know about functions and parameters.
    2. Teachers should prepare before the class.
    3. Teachers should ensure that students practise all these levels.
    4. Teachers may allow students to complete the exercise as pair programming.
    5. Click here for more instructions about this lesson.